<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>box-sizing-reset</title>
    <style>
        *,*::before,*::after {
            box-sizing: inherit;
        }
        .content-box {
            box-sizing: content-box;
        }
        .border-box {
            box-sizing: border-box;
        }
        .box {
            display: inline-block;
            width: 120px;
            height: 120px;
            padding: 8px;
            margin: 8px;
            background-color: #f24333;
            color: #fff;
            border: 1px solid #ba1b1d;
            border-radius: 4px;
        }
    </style>
</head>
<body>
    <div class="box border-box"></div>
    <div class="box content-box"></div>
</body>
</html>